package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/9 15:05
 */
@NoArgsConstructor
@Data
public class NormBusinessStatsPO {

    @JsonProperty("business_stat")
    private List<BusinessStatDTO> businessStat;
    @JsonProperty("data_refresh_at")
    private String dataRefreshAt;

    @NoArgsConstructor
    @Data
    public static class BusinessStatDTO {
        @JsonProperty("business_name")
        private String businessName;
        @JsonProperty("vm_total")
        private Integer vmTotal;
        @JsonProperty("cpu_total")
        private Integer cpuTotal;
        @JsonProperty("mem_total")
        private Integer memTotal;
        @JsonProperty("storage_total")
        private Integer storageTotal;
    }
}
